// sensors - 传感器

"nodejs";
const { getSensor, SensorDelay } = require("sensors");

const sensor = getSensor("light");
sensor.enableSensorEvent(SensorDelay.Normal)
      .on("change", (light) => {
          console.log(light);
      });
$autojs.keepRunning();

